﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200116D RID: 4461
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetLanguageCsReq : IMessage<SetLanguageCsReq>, IMessage, IEquatable<SetLanguageCsReq>, IDeepCloneable<SetLanguageCsReq>, IBufferMessage
	{
		// Token: 0x17003871 RID: 14449
		// (get) Token: 0x0600C7A5 RID: 51109 RVA: 0x0021A615 File Offset: 0x00218815
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetLanguageCsReq> Parser
		{
			get
			{
				return SetLanguageCsReq._parser;
			}
		}

		// Token: 0x17003872 RID: 14450
		// (get) Token: 0x0600C7A6 RID: 51110 RVA: 0x0021A61C File Offset: 0x0021881C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetLanguageCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003873 RID: 14451
		// (get) Token: 0x0600C7A7 RID: 51111 RVA: 0x0021A62E File Offset: 0x0021882E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetLanguageCsReq.Descriptor;
			}
		}

		// Token: 0x0600C7A8 RID: 51112 RVA: 0x0021A635 File Offset: 0x00218835
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetLanguageCsReq()
		{
		}

		// Token: 0x0600C7A9 RID: 51113 RVA: 0x0021A63D File Offset: 0x0021883D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetLanguageCsReq(SetLanguageCsReq other) : this()
		{
			this.dKNJKIALLGI_ = other.dKNJKIALLGI_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C7AA RID: 51114 RVA: 0x0021A662 File Offset: 0x00218862
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetLanguageCsReq Clone()
		{
			return new SetLanguageCsReq(this);
		}

		// Token: 0x17003874 RID: 14452
		// (get) Token: 0x0600C7AB RID: 51115 RVA: 0x0021A66A File Offset: 0x0021886A
		// (set) Token: 0x0600C7AC RID: 51116 RVA: 0x0021A672 File Offset: 0x00218872
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LanguageType DKNJKIALLGI
		{
			get
			{
				return this.dKNJKIALLGI_;
			}
			set
			{
				this.dKNJKIALLGI_ = value;
			}
		}

		// Token: 0x0600C7AD RID: 51117 RVA: 0x0021A67B File Offset: 0x0021887B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetLanguageCsReq);
		}

		// Token: 0x0600C7AE RID: 51118 RVA: 0x0021A689 File Offset: 0x00218889
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetLanguageCsReq other)
		{
			return other != null && (other == this || (this.DKNJKIALLGI == other.DKNJKIALLGI && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C7AF RID: 51119 RVA: 0x0021A6B8 File Offset: 0x002188B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.DKNJKIALLGI != LanguageType.LanguageNone)
			{
				num ^= this.DKNJKIALLGI.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C7B0 RID: 51120 RVA: 0x0021A6FD File Offset: 0x002188FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C7B1 RID: 51121 RVA: 0x0021A705 File Offset: 0x00218905
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C7B2 RID: 51122 RVA: 0x0021A70E File Offset: 0x0021890E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.DKNJKIALLGI != LanguageType.LanguageNone)
			{
				output.WriteRawTag(8);
				output.WriteEnum((int)this.DKNJKIALLGI);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C7B3 RID: 51123 RVA: 0x0021A740 File Offset: 0x00218940
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.DKNJKIALLGI != LanguageType.LanguageNone)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.DKNJKIALLGI);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C7B4 RID: 51124 RVA: 0x0021A77E File Offset: 0x0021897E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetLanguageCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.DKNJKIALLGI != LanguageType.LanguageNone)
			{
				this.DKNJKIALLGI = other.DKNJKIALLGI;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C7B5 RID: 51125 RVA: 0x0021A7AF File Offset: 0x002189AF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C7B6 RID: 51126 RVA: 0x0021A7B8 File Offset: 0x002189B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.DKNJKIALLGI = (LanguageType)input.ReadEnum();
				}
			}
		}

		// Token: 0x04005038 RID: 20536
		private static readonly MessageParser<SetLanguageCsReq> _parser = new MessageParser<SetLanguageCsReq>(() => new SetLanguageCsReq());

		// Token: 0x04005039 RID: 20537
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400503A RID: 20538
		public const int DKNJKIALLGIFieldNumber = 1;

		// Token: 0x0400503B RID: 20539
		private LanguageType dKNJKIALLGI_;
	}
}
